//
//  ExaminationHomeController.m
//  Arts1
//
//  Created by apple on 15/9/16.
//  Copyright (c) 2015年 Arts1. All rights reserved.
//

#import "ExaminationHomeController.h"
#import "ExaminationTitleDate.h"
#import "ExaminationMainController.h"
#import "AllHeader.h"

@interface ExaminationHomeController ()

/**
 *  考试控制器
 */
@property (nonatomic ,strong) ExaminationMainController *examinationVC;

@property (nonatomic ,strong) ExaminationTitleDate *dateView;

@end

@implementation ExaminationHomeController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self creactExaminationView];
}

/**
 *  创建日历视图页面
 */
- (void)creactExaminationView
{
    UILabel *line = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 0.1)];
    line.backgroundColor = [UIColor grayColor];
    line.alpha = 1;
    [self.view addSubview:line];
    
//    _dateView = [[ExaminationTitleDate alloc] initWithFrame:CGRectMake(0, line.bottom, SCREEN_WIDTH, 44)];
//    _dateView.showDate.textColor = kCustomColor(40, 40, 50, 1);
//    _dateView.showDate.tintColor = [UIColor blackColor];
//    _dateView.showDate.text = @"2015/10";
//    _dateView.backgroundColor = [UIColor whiteColor];
//    [self.view addSubview:_dateView];
    
    _examinationVC = [[ExaminationMainController alloc] initWithStyle:(UITableViewStylePlain)];
    _examinationVC.view.frame = CGRectMake(0, self.dateView.bottom, SCREEN_WIDTH, SCREEN_HEIGHT );
    [self.view addSubview:_examinationVC.view];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
